<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="/WEB-INF/jsp/common/navigationRight.jsp" %>
<%@include file="/WEB-INF/jsp/common/head.jsp" %>
<%@include file="/WEB-INF/jsp/common/navigationLeft.jsp" %>


<div class="m2-userCentermanage-con">
    <div class="m2-user-recharge">
        <h3><i class="m2-user-record"></i>还款计划</h3>
    </div>
    <div class="m2-recharge-mainbody">
        <div class="m2-user-newsmanage">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>项目</td>
                    <td>计划还款总额(元)</td>
                    <td>实际还款总额(元)</td>
                    <td>待还款(元)</td>
                    <td>状态</td>
                    <td>详细</td>
                </tr>
                <c:forEach items="${aqbProjects}" var="aqbProject">
                    <tr>
                        <td>${aqbProject.proName}</td>
                        <td class="">${aqbProject.proAmount + aqbProject.payableInterest}元</td>
                        <td>${aqbProject.payMoneySum + aqbProject.payInterestSum}</td>
                        <td>${(aqbProject.proAmount - aqbProject.payMoneySum) + (aqbProject.payableInterest - aqbProject.payInterestSum)}元</td>
                        <td>
                            <c:if test="${aqbProject.proStatus == 3}">还款中</c:if>
                            <c:if test="${aqbProject.proStatus == 4}">已还清</c:if>
                        </td>
                        <td><a href="${ctx}/borrow/info?proId=${aqbProject.proId}" style="color: #00BBEE">查看</a></td>
                    </tr>
                </c:forEach>
                <tr>
                    <td>总计</td>
                    <td>${userAmountSum + userInterestSum}</td>
                    <td>${userPayAmount + userPayInterest}元</td>
                    <td>${(userAmountSum - userPayAmount) + (userInterestSum - userPayInterest)}元</td>
                </tr>
            </table>
        </div>
    </div>
</div>
</div>
</body>
</html>